<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>应用详情</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/appstore/images/common.css" media="all" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>

</head>
<body>
<div style="width:900px; margin:0px auto">
  <div class="appc_title">应用详情</div>
  <div class="appc_left">
    <div class="appc_nr">
      <h2>{$info['app_name']}</h2>
      <div class="appc_nr_jc">
        <div class="l">
          <p><span>版本:</span>{$info['app_ver']}</p>
          <p><span>运行环境:</span>{$info['runtime']}</p>
          <p><span>安装次数:</span> {$info['total_download']}次</p>
          <p><span>开发者:</span>{$info['app_author']}</p>
		  <p><span>发布日期:</span><?php echo date("Y-m-d", $info['create_time']); ?></p>
        </div>
        <div class="r">该应用得分：<br />
          <font class="pf">9.8分</font>
          <div class="az"><a id="download_zip" class="aj xz" href="javascript:;" appstore_id="{$info['id']}">立即安装</a></div>
        </div>
        <div class="clear"></div>
      </div>
      <div class="appc_nr_box">
        <h3 class="title">应用详情</h3>
        <?php echo html_out($info['app_detail']); ?>
	   </div>
    </div>
  </div>
  {include file="right"}
</div>
<script type="text/javascript">
$(function(){
	$('#download_zip').click(function(){
		var id = $(this).attr('appstore_id');
		$(this).html('安装中…');
		$.get("{url('index/getdownloadurl')}", {'id': id}, function(json){
			if( json.status==1 ){
				window.location.href = json.url;
			}else{
				$('#download_zip').html('安装失败');
				alert('安装失败');
			}
		}, "json");
	});
});
</script>
</body>
</html>
